package com.foreknow.demo6;

public class TestEmployee {
    public static void main(String[] args) {
        Employee employee = new Employee();
        //调用set方法给card属性设置一个值
        employee.setCard(1001);
        employee.setName("tom");
        employee.setDept("市场部");
        employee.setSalary(12345.34);
        //调用get方法来获取到card属性的值
        int num = employee.getCard();
        String name = employee.getName();
        String dept = employee.getDept();
        double salary = employee.getSalary();
        System.out.println(num+"---"+name+"---"+dept+"---"+salary);


//        employee.name = "tom1";
//        employee.card = 1003;
//        employee.dept = "market1";
//        System.out.println(employee.name+"--"+employee.card+"--"+employee.dept);
    }
}
